package com.meizi.daily.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * @author meizi
 * @email enjoymeizi@gmail.com
 * @date 2020-05-20 18:15:43
 */
@Data
@Table(name = "t_consumption")
public class Consumption implements Serializable {
    private static final long serialVersionUID = 1L;

    //
    @Id
    private Integer id;

    //消费金额
    @Column(name = "consumption")
    private BigDecimal consumption;

    //用户id
    @Column(name = "userid")
    private Integer userid;

    //描述
    @Column(name = "description")
    private String description;

    //消费类型
    @Column(name = "category_id")
    private Integer categoryId;

    //消费满意度
    @Column(name = "satisfaction")
    private Integer satisfaction;


    //支付方式
    @Column(name = "pay_type_id")
    private Integer payTypeId;

    //0预支，1现结，2已支
    @Column(name = "wallet_type")
    private Integer walletType;

    //创建时间
    @Column(name = "create_time")
    //  @JsonFormat(pattern="yyyy-MM-dd HH:mm")
    private Date createTime;

}
